import {t, api, message, bs} from "@/service/index.js"


export default {
    url: {
        findDataPermissions: "/dataPermissions/findDataPermissions",
        editDataPermissions: "/dataPermissions/editDataPermissions",
        findByTables: "/dataPermissions/findByTables",
        findByFields: "/dataPermissions/findByFields",
        findByFieldValue: "/dataPermissions/findByFieldValue",
        delDataPermissions: "/dataPermissions/delDataPermissions"
    },
    findDataPermissions(data) {
        return api.post(this.url.findDataPermissions, data)
    },
    editDataPermissions(data) {
        return api.post(this.url.editDataPermissions, data)
    },
    delDataPermissions(data){
        return api.post(this.url.delDataPermissions, data)
    },
    findByTables(data) {
        return api.post(this.url.findByTables, data)
    },

    findByFields(data) {
        return api.post(this.url.findByFields, data)
    },

    findByFieldValue(data){
        return api.post(this.url.findByFieldValue, data)
    },
}